package com.five.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author keibdye
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "钱包记录表")
public class WalletRecords {

    @ApiModelProperty(value = "唯一id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户id")
    private Long walletCode;


    @ApiModelProperty(value = "充值/消费金额")
    private BigDecimal money;

    @ApiModelProperty(value = "处理前余额")
    private BigDecimal beforeBalance;

    @ApiModelProperty(value = "处理后余额")
    private BigDecimal afterBalance;

    @ApiModelProperty(value = "交易标题")
    private String title;

    @ApiModelProperty(value = "交易类型（1-充值 2-消费）")
    private Integer type;

    @ApiModelProperty(value = "交易类型（1-充值 2-消费）",hidden = true)
    private Integer payment;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;




}
